#ifndef QTCALL_H
#define QTCALL_H

#include <QtGui/QMainWindow>
#include <QtGui/QMessageBox>
#include <QTimer>
#include "ui_qtcall.h"

// pjsua lib
#include <pjsua-lib/pjsua.h>


class qtcall : public QMainWindow
{
	Q_OBJECT

public:
	qtcall(QWidget *parent = 0, Qt::WFlags flags = 0);
	~qtcall();
private:
	void init();

	friend void on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id, \
			     pjsip_rx_data *rdata);
	friend void on_call_state(pjsua_call_id call_id, pjsip_event *e);
	friend void on_call_media_state(pjsua_call_id call_id);

	

private slots:
	void call();
	void endcall();
	

private:
	Ui::qtcallClass ui;
	pjsua_acc_id *m_acc_id;
	pjsua_acc_config *m_acc_cfg;
	pjsua_config *m_cfg;
	pjsua_logging_config *m_log_cfg;
	pjsua_transport_config *m_transport_cfg;

	

};

#endif // QTCALL_H
